< previous page page_356 next page >

Page 356
You can optionally have a line to separate the procedures by checking the Procedure Separator check box.
You can find a toggle for this option on every code window in the lower-left corner, as shown in Figure 18.5.
8160-0356a.gif
Figure 18.5
Toggle buttons for the procedure and full module views.
Tabbing Between Windows
To move quickly between the various open windows (forms, classes, modules) in your Visual Basic session, press Ctrl+Tab to iterate forward and Shift+Ctrl+Tab to iterate backward. This keeps your hands on the keyboard instead of having to use the mouse to select a specific window.
Creating New Procedures and Functions Quickly
There are two ways to create a new procedure or function. You can select Tools, Add Procedure from the Visual Basic menu, or you can move your cursor to the first line or last blank line in a code window and type Sub or Function. Next, you type the name of the procedure or function and press the Enter key. You may optionally include the Public or Private scope keywords and parameters.
Using Bookmarks
While editing a large project, you may find yourself bouncing around from procedure to procedure in different modules. If this is the case, you may want to quickly get back to a specific line of code. You can use the Bookmarks icon on the Edit toolbar to set a bookmark. Position your cursor on a line of code and press the Toggle Bookmark icon (see Figure 18.6).

 
< previous page page_356 next page >

If you like this book, buy it!